package com.test;

import java.text.SimpleDateFormat;
import java.util.Date;

public class java4 {
	public static void main(String[] args) {
		Date time = new Date();
		String date = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(time);
		System.out.println(date);

	}

}
